package com.pingan.haofang.searchcloud.web.index.vo.example;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 示例接口
 *
 * @author zhangbi617
 * @date 03/05/2017
 */
@ApiModel(description = "响应")
public class RpcExampleVo<P, R> {

    /**
     * rpc地址
     */
    @ApiModelProperty(value = "rpc地址", example = "http://example.domain/path/to")
    private String url;

    /**
     * RPC 请求示例
     */
    @ApiModelProperty(value = "RPC 请求示例")
    private RpcExampleRequest<P> request;

    /**
     * RPC 响应示例
     */
    @ApiModelProperty(value = "RPC 响应示例")
    private RpcExampleResponse<R> response;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public RpcExampleRequest<P> getRequest() {
        return request;
    }

    public void setRequest(RpcExampleRequest<P> request) {
        this.request = request;
    }

    public RpcExampleResponse<R> getResponse() {
        return response;
    }

    public void setResponse(RpcExampleResponse<R> response) {
        this.response = response;
    }

    @Override
    public String toString() {
        return "RpcExampleVo{" +
                "url='" + url + '\'' +
                ", request=" + request +
                ", response=" + response +
                '}';
    }
}
